package net.yeah.mickey_zhouyou.database.util;

public class ConfigProperties {

	private static ConfigProperties config = new ConfigProperties();

	private ConfigProperties() {
	}

	/**
	 * 数据是否保存历史版本
	 */
	private boolean save_history_version = false;
	private String rootPath = "data/";

	public static ConfigProperties getConfig() {
		return config;
	}

	public static String getEntityRootPath() {
		return config.rootPath + "entity/";
	}

	public static String getRelationshipRootPath() {
		return config.rootPath + "relationship/";
	}

	public static String getSequenceRootPath() {
		return config.rootPath + "sequence/";
	}

	public static boolean isSaveHistoryVersion() {
		return config.save_history_version;
	}

	public void setSaveHistoryVersion(boolean b) {
		save_history_version = b;
	}

	public void setRootPath(String path) {
		rootPath = path;
	}
}
